<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>first letter</title>
    <style>
        /* :: 选择伪元素 */
        /* 找段落下的首字母*/
        p::first-letter {
            color: rgb(185, 172, 141);
            font-weight: bold;
        }
    </style>
</head>

<body>
    <p>The first letter of this paragraph is <code>goldenrod</code>, which is a <em>great</em> color.</p>
</body>

</html>